package com.zsrt.java.day20161229.wrl.demo02;

/**
 * 创建类 Car
 * 品牌 String brand
 * 价格 double price
 * 重量 double weight
 * @author Administrator
 *
 */
public class Car01 {
	private String brand;
	private double price;
	private double weight;
	
	public void setBrand(String brand){
		this.brand = brand;
	}
	public String getBrand(){
		return brand;
	}
	
	public void setPrice(double price){
		this.price = price;
	}
	public double getPrice(){
		return price;
	}
	
	public void setWeight(double weight){
		this.weight = weight;
	}
	public double getWeight(){
		return weight;
	}

	public static void main(String[] args) {
		Car01 byd = new Car01();
		byd.setBrand("法拉利");
		byd.setPrice(8000000.1);
		byd.setWeight(5000);
		System.out.println("品牌："+byd.getBrand());
		System.out.println("价格："+byd.getPrice());
		System.out.println("重量："+byd.getWeight());
	}





}
